-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ajax/share.php should return correct list of suggestions #15182
Conversation
We should use the provided list of users and groups that we already shared with to filter suggestions.
The inspection completed: 2 new issues, 1 updated code elements |
Refer to this link for build results (access rights to CI server needed): |
Does this also help to fix #7128 by any chance? :) |
@jancborchardt I think for most situations yes. |
@jancborchardt after reading it a bit more careful, no it does not! |
Good stuff, fixes the second part of #8231 for me. 👍 Another review please @owncloud/designers? |
So, the other part is slightly harder. Since we currently do not fetch any data about the share. We should probably try to solve that while we try to fix #7128 et al. |
@rullzer do you want to do that in this PR or a separate one? Another review please @owncloud/designers @schiesbn :) |
@jancborchardt that fix is far less trivial, so different PR. |
would be great to get this done these days - THX a lot! |
@DeepDiver1975 I think this code it not unit tested at all currently. So my ini tiny tests will not improve it much. And I do not really feel like adding unit tests for the whole file. I suggest to just go forward and get rid of all the old ajax/*.php stuff before 8.2 |
👍 |
ajax/share.php should return correct list of suggestions
Partial solves #8231
We should take advantage of the provided list of users and groups we already share with to filter the suggestions. This makes it harder to do double shares with the same users wich leads to bad UX.
Note to self: This should probably also be done in #13587